PositionFlags

enum PositionFlags : ProtocolMessageEnum

Bit field of boolean configuration options, indicating which optional
fields to include when assembling POSITION messages.
Longitude, latitude, altitude, speed, heading, and DOP
are always included (also time if GPS-synced)
NOTE: the more fields are included, the larger the message will be -
leading to longer airtime and a higher risk of packet loss
Protobuf enum meshtastic.Config.PositionConfig.PositionFlags

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Altitude value is MSL
ALTITUDE_MSL = 2;
Link copied to clipboard

Include an altitude value (if available)
ALTITUDE = 1;
Link copied to clipboard
val DOP_VALUE: Int = 8

Include the DOP value ; PDOP used by default, see below
DOP = 8;
Link copied to clipboard

Include geoidal separation
GEOIDAL_SEPARATION = 4;
Link copied to clipboard
val HEADING_VALUE: Int = 256

Include positional heading
Intended for use with vehicle not walking speeds
walking speeds are likely to be error prone like the compass
HEADING = 256;
Link copied to clipboard
val HVDOP_VALUE: Int = 16

If POS_DOP set, send separate HDOP / VDOP values instead of PDOP
HVDOP = 16;
Link copied to clipboard

Include number of "satellites in view"
SATINVIEW = 32;
Link copied to clipboard
val SEQ_NO_VALUE: Int = 64

Include a sequence number incremented per packet
SEQ_NO = 64;
Link copied to clipboard
val SPEED_VALUE: Int = 512

Include positional speed
Intended for use with vehicle not walking speeds
walking speeds are likely to be error prone like the compass
SPEED = 512;
Link copied to clipboard
val TIMESTAMP_VALUE: Int = 128

Include positional timestamp (from GPS solution)
TIMESTAMP = 128;
Link copied to clipboard
val UNSET_VALUE: Int = 0

Required for compilation
UNSET = 0;

Functions

Link copied to clipboard
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): ConfigProtos.Config.PositionConfig.PositionFlags

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.